<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>docpadUtil</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="icon" href="../assets/favicon.ico">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
                <h1><img src="../assets/css/logo.png" title="" width="117" height="52"></h1>
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: </em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
                    <h2 class="off-left">APIs</h2>
                    <div id="api-tabview" class="tabview">
                        <ul class="tabs">
                            <li><a href="#api-classes">Classes</a></li>
                            <li><a href="#api-modules">Modules</a></li>
                        </ul>
                
                        <div id="api-tabview-filter">
                            <input type="search" id="api-filter" placeholder="Type to filter APIs">
                        </div>
                
                        <div id="api-tabview-panel">
                            <ul id="api-classes" class="apis classes">
                                <li><a href="../classes/BasePlugin.html">BasePlugin</a></li>
                                <li><a href="../classes/Collection.html">Collection</a></li>
                                <li><a href="../classes/Docpad.html">Docpad</a></li>
                                <li><a href="../classes/docpadUtil.html">docpadUtil</a></li>
                                <li><a href="../classes/DocumentModel.html">DocumentModel</a></li>
                                <li><a href="../classes/ElementsCollection.html">ElementsCollection</a></li>
                                <li><a href="../classes/Events.html">Events</a></li>
                                <li><a href="../classes/FileModel.html">FileModel</a></li>
                                <li><a href="../classes/FilesCollection.html">FilesCollection</a></li>
                                <li><a href="../classes/MetaCollection.html">MetaCollection</a></li>
                                <li><a href="../classes/Model.html">Model</a></li>
                                <li><a href="../classes/PluginLoader.html">PluginLoader</a></li>
                                <li><a href="../classes/PluginTester.html">PluginTester</a></li>
                                <li><a href="../classes/QueryCollection.html">QueryCollection</a></li>
                                <li><a href="../classes/ScriptCollection.html">ScriptCollection</a></li>
                                <li><a href="../classes/ServerTester.html">ServerTester</a></li>
                                <li><a href="../classes/StylesCollection.html">StylesCollection</a></li>
                            </ul>
                
                
                            <ul id="api-modules" class="apis modules">
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
                    Show:
                    <label for="api-show-inherited">
                        <input type="checkbox" id="api-show-inherited" checked>
                        Inherited
                    </label>
            
                    <label for="api-show-protected">
                        <input type="checkbox" id="api-show-protected">
                        Protected
                    </label>
            
                    <label for="api-show-private">
                        <input type="checkbox" id="api-show-private">
                        Private
                    </label>
                    <label for="api-show-deprecated">
                        <input type="checkbox" id="api-show-deprecated">
                        Deprecated
                    </label>
            
                </div>
            
            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
<h1>docpadUtil Class</h1>
<div class="box meta">


        <div class="foundat">
            Defined in: <a href="../files/src_lib_util.coffee.html#l16"><code>src&#x2F;lib&#x2F;util.coffee:16</code></a>
        </div>


</div>


<div class="box intro">
    <p>The DocPad Util Class.
Collection of DocPad utility methods</p>

</div>

    <div class="constructor">
        <h2>Constructor</h2>
<div id="method_docpadUtil" class="method item">
    <h3 class="name"><code>docpadUtil</code></h3>

        <span class="paren">()</span>





        <span class="flag static">static</span>



    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l16"><code>src&#x2F;lib&#x2F;util.coffee:16</code></a>
        </p>



    </div>

    <div class="description">
        
    </div>




</div>
    </div>

<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>

                <div class="index-section methods">
                    <h3>Methods</h3>

                    <ul class="index-list methods">
                            <li class="index-item method">
                                <a href="#method_action">action</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getBasename">getBasename</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_getDefaultLogLevel">getDefaultLogLevel</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getDirPath">getDirPath</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getExtension">getExtension</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getExtensions">getExtensions</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getFilename">getFilename</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_getLocalDocPadExecutable">getLocalDocPadExecutable</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_getLocalDocPadExecutableExistance">getLocalDocPadExecutableExistance</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getOutFilename">getOutFilename</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getSlug">getSlug</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getUrl">getUrl</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_inspect">inspect</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_isLocalDocPadExecutable">isLocalDocPadExecutable</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_isStandalone">isStandalone</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_isStandardEncoding">isStandardEncoding</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_isTravis">isTravis</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_isTTY">isTTY</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_isUser">isUser</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_startLocalDocPadExecutable">startLocalDocPadExecutable</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_wait">wait</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_writeError">writeError</a>

                            </li>
                            <li class="index-item method private">
                                <a href="#method_writeStderr">writeStderr</a>

                            </li>
                    </ul>
                </div>



        </div>

            <div id="methods" class="api-class-tabpanel">
                <h2 class="off-left">Methods</h2>

<div id="method_action" class="method item">
    <h3 class="name"><code>action</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>action</code>
                </li>
                <li class="arg">
                        <code>opts</code>
                </li>
                <li class="arg">
                        <code>next</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l280"><code>src&#x2F;lib&#x2F;util.coffee:280</code></a>
        </p>



    </div>

    <div class="description">
        <p>Perform an action
next(err,...), ... = any special arguments from the action
this should be it's own npm module
as we also use the concept of actions in a few other packages.
Important concept in DocPad.</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">action</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">opts</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">next</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_getBasename" class="method item">
    <h3 class="name"><code>getBasename</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>filename</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">String</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l187"><code>src&#x2F;lib&#x2F;util.coffee:187</code></a>
        </p>



    </div>

    <div class="description">
        <p>get a filename without the extension</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">filename</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">String</span>:
                    <p>base name</p>

            </div>
        </div>


</div>
<div id="method_getDefaultLogLevel" class="method item private">
    <h3 class="name"><code>getDefaultLogLevel</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">Number</span>
        </span>


        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l56"><code>src&#x2F;lib&#x2F;util.coffee:56</code></a>
        </p>



    </div>

    <div class="description">
        <p>Get Default Log Level</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Number</span>:
                    <p>default log level</p>

            </div>
        </div>


</div>
<div id="method_getDirPath" class="method item">
    <h3 class="name"><code>getDirPath</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>path</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">String</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l229"><code>src&#x2F;lib&#x2F;util.coffee:229</code></a>
        </p>



    </div>

    <div class="description">
        <p>Get the directory path.
Wrapper around the node.js path.dirname method</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">path</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">String</span>:
            </div>
        </div>


</div>
<div id="method_getExtension" class="method item">
    <h3 class="name"><code>getExtension</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>extensions</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">String</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l212"><code>src&#x2F;lib&#x2F;util.coffee:212</code></a>
        </p>



    </div>

    <div class="description">
        <p>Get the extension from a bunch of extensions</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">extensions</code>
                        <span class="type">Array</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">String</span>:
                    <p>the extension</p>

            </div>
        </div>


</div>
<div id="method_getExtensions" class="method item">
    <h3 class="name"><code>getExtensions</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>filename</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">Array</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l201"><code>src&#x2F;lib&#x2F;util.coffee:201</code></a>
        </p>



    </div>

    <div class="description">
        <p>Get the extensions of a filename</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">filename</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Array</span>:
                    <p>array of string</p>

            </div>
        </div>


</div>
<div id="method_getFilename" class="method item">
    <h3 class="name"><code>getFilename</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>path</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">String</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l239"><code>src&#x2F;lib&#x2F;util.coffee:239</code></a>
        </p>



    </div>

    <div class="description">
        <p>Get the file name.
Wrapper around the node.js path.basename method</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">path</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">String</span>:
            </div>
        </div>


</div>
<div id="method_getLocalDocPadExecutable" class="method item private">
    <h3 class="name"><code>getLocalDocPadExecutable</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">String</span>
        </span>


        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l138"><code>src&#x2F;lib&#x2F;util.coffee:138</code></a>
        </p>



    </div>

    <div class="description">
        <p>Get Local DocPad Installation Executable - ie
not the global installation</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">String</span>:
                    <p>the path to the local DocPad executable</p>

            </div>
        </div>


</div>
<div id="method_getLocalDocPadExecutableExistance" class="method item private">
    <h3 class="name"><code>getLocalDocPadExecutableExistance</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>


        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l157"><code>src&#x2F;lib&#x2F;util.coffee:157</code></a>
        </p>



    </div>

    <div class="description">
        <p>Does the local DocPad Installation Exist?</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Boolean</span>:
            </div>
        </div>


</div>
<div id="method_getOutFilename" class="method item">
    <h3 class="name"><code>getOutFilename</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>basename</code>
                </li>
                <li class="arg">
                        <code>extension</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">String</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l249"><code>src&#x2F;lib&#x2F;util.coffee:249</code></a>
        </p>



    </div>

    <div class="description">
        <p>Get the DocPad out file name</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">basename</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">extension</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">String</span>:
            </div>
        </div>


</div>
<div id="method_getSlug" class="method item">
    <h3 class="name"><code>getSlug</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>relativeBase</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">String</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l271"><code>src&#x2F;lib&#x2F;util.coffee:271</code></a>
        </p>



    </div>

    <div class="description">
        <p>Get the post slug from the URL</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">relativeBase</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">String</span>:
                    <p>the slug</p>

            </div>
        </div>


</div>
<div id="method_getUrl" class="method item">
    <h3 class="name"><code>getUrl</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>relativePath</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">String</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l262"><code>src&#x2F;lib&#x2F;util.coffee:262</code></a>
        </p>



    </div>

    <div class="description">
        <p>Get the URL</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">relativePath</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">String</span>:
            </div>
        </div>


</div>
<div id="method_inspect" class="method item">
    <h3 class="name"><code>inspect</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>obj</code>
                </li>
                <li class="arg">
                        <code>opts</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">String</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l105"><code>src&#x2F;lib&#x2F;util.coffee:105</code></a>
        </p>



    </div>

    <div class="description">
        <p>Wrapper for the node.js method util.inspect</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">obj</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">opts</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">String</span>:
            </div>
        </div>


</div>
<div id="method_isLocalDocPadExecutable" class="method item private">
    <h3 class="name"><code>isLocalDocPadExecutable</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>


        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l148"><code>src&#x2F;lib&#x2F;util.coffee:148</code></a>
        </p>



    </div>

    <div class="description">
        <p>Is Local DocPad Installation</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Boolean</span>:
            </div>
        </div>


</div>
<div id="method_isStandalone" class="method item private">
    <h3 class="name"><code>isStandalone</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">Object</span>
        </span>


        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l87"><code>src&#x2F;lib&#x2F;util.coffee:87</code></a>
        </p>



    </div>

    <div class="description">
        <p>Is Standadlone</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Object</span>:
            </div>
        </div>


</div>
<div id="method_isStandardEncoding" class="method item private">
    <h3 class="name"><code>isStandardEncoding</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>encoding</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>


        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l127"><code>src&#x2F;lib&#x2F;util.coffee:127</code></a>
        </p>



    </div>

    <div class="description">
        <p>Are we using standard encoding?</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">encoding</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Boolean</span>:
            </div>
        </div>


</div>
<div id="method_isTravis" class="method item private">
    <h3 class="name"><code>isTravis</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">String</span>
        </span>


        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l68"><code>src&#x2F;lib&#x2F;util.coffee:68</code></a>
        </p>



    </div>

    <div class="description">
        <p>Are we executing on Travis</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">String</span>:
                    <p>The travis node version</p>

            </div>
        </div>


</div>
<div id="method_isTTY" class="method item private">
    <h3 class="name"><code>isTTY</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>


        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l77"><code>src&#x2F;lib&#x2F;util.coffee:77</code></a>
        </p>



    </div>

    <div class="description">
        <p>Is this TTY</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Boolean</span>:
            </div>
        </div>


</div>
<div id="method_isUser" class="method item private">
    <h3 class="name"><code>isUser</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>


        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l96"><code>src&#x2F;lib&#x2F;util.coffee:96</code></a>
        </p>



    </div>

    <div class="description">
        <p>Is user</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Boolean</span>:
            </div>
        </div>


</div>
<div id="method_startLocalDocPadExecutable" class="method item private">
    <h3 class="name"><code>startLocalDocPadExecutable</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>next</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">Object</span>
        </span>


        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l166"><code>src&#x2F;lib&#x2F;util.coffee:166</code></a>
        </p>



    </div>

    <div class="description">
        <p>Spawn Local DocPad Executable</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">next</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Object</span>:
                    <p>don't know what</p>

            </div>
        </div>


</div>
<div id="method_wait" class="method item private">
    <h3 class="name"><code>wait</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>time</code>
                </li>
                <li class="arg">
                        <code>fn</code>
                </li>
            </ul><span class="paren">)</span>
        </div>



        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l46"><code>src&#x2F;lib&#x2F;util.coffee:46</code></a>
        </p>



    </div>

    <div class="description">
        <p>Wait. Wrapper for setTimeout</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">time</code>
                        <span class="type">Number</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">fn</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_writeError" class="method item private">
    <h3 class="name"><code>writeError</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>err</code>
                </li>
            </ul><span class="paren">)</span>
        </div>



        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l37"><code>src&#x2F;lib&#x2F;util.coffee:37</code></a>
        </p>



    </div>

    <div class="description">
        <p>Write an error</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">err</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_writeStderr" class="method item private">
    <h3 class="name"><code>writeStderr</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>data</code>
                </li>
            </ul><span class="paren">)</span>
        </div>



        <span class="flag private">private</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_lib_util.coffee.html#l25"><code>src&#x2F;lib&#x2F;util.coffee:25</code></a>
        </p>



    </div>

    <div class="description">
        <p>Write to stderr</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">data</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
            </div>



    </div>
</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
